package ecmnext.utils;

/***************************************************************/
/*                     SOFTWARE SECTION                        */
/***************************************************************/
/*
 * <p>Name: ECMNext</p>
 * <p>Description: Simulation of the platform of trading Software</p>
 * <p>Licence: General Public License</p>
 * <p>Organisation: EC Marseille</p>
 * <p>Persons involved in the project : group Plateforme de Trading</p>
 * <p>Current version: 1.0</p>
 */


/***************************************************************/
/*                      IMPORT SECTION                         */
/***************************************************************/

import java.awt.*;

/***************************************************************/
/*               Constants INTERFACE SECTION                   */
/***************************************************************/
/**
 * <p>Title: Constants</p>
 * <p>Description: Constants (strings...) used by the software</p>
 * @author Xuewen YANG ET Antoine COUDERC
 * @version 0.2
 */
public interface Constants {




  public final String CLIENT_LOG_FILE = "./client.log";

  public final String DEFAULTPARAMETER_USERNAME = "Your Name";
  public final String DEFAULTPARAMETER_PASSWORD = "";
  public final String DEFAULTPARAMETER_HOST = "localhost";

  public final String VERSION = "1.0";
  public final String DATE_OF_RELEASE = "Released on February 2012";
      //"Released on May 2006";

  //Other information
  public final String WEB_PAGE = "www.ecmnext.net";
      //"http://eleves.ec-lille.fr/~ecoxp03/";

  public final String LOG_DIALOG_FILTER_DESCRIPTION = "ECMNext XML log files (*.xml)";
  public final String LOG_DIALOG_FILTER_EXTENSION = ".xml";

  public final String GENERAL_SETTINGS_DIRECTORY = ".ecoxp";

  public final String ERR_NO_USER_DIR = "Could not locate or create home settings directory";

  public final Color COLOR_ODD_LINE = new Color(208,208,208);
  public final Color COLOR_EVEN_LINE = new Color(218,218,218);

// not used anymore
//  public final String SERVER_PROPERTIES_FILE = "server.properties";
//  public final String CLIENT_PROPERTIES_FILE = "client.properties";

  public final String ERR_CLIENT_READ_LASTLOGIN = "Unable to load login configuration file : ";
  public final String ERR_CLIENT_WRITE_LASTLOGIN = "Error while writing login configuration file : ";

  public final String CURRENCY = "$";

  // Table colors : SUPERGREEN
  public final Color CLIENT_STATE_GREEN = new Color(145,220,180);
  public final Color CLIENT_STATE_RED = new Color(220,160,155);
  public final Color CLIENT_STATE_WHITE = new Color(255,255,255);

  // clients interface
  public final Color CLIENT_BUY_INACTIVE = new Color(200, 250, 190);
  public final Color CLIENT_SELL_INACTIVE = new Color(190, 230, 250);
  public final Color CLIENT_EXECUTE_INACTIVE = new Color(208, 208, 208);

  public final Color CLIENT_BUY_ACTIVE = new Color(145,220,180);
  public final Color CLIENT_SELL_ACTIVE = new Color(170, 190, 245);
  public final Color CLIENT_EXECUTE_ACTIVE = new Color(255, 185, 185);

  public final Color CLIENT_BUY_INTERMEDIARY = new Color(145,220,180);
  public final Color CLIENT_SELL_INTERMEDIARY = new Color(170,190,245);

  //public final Color CLIENT_BUY_HL = new Color(90,190,170);
  //public final Color CLIENT_SELL_HL = new Color(150,150,240);
  public final Color CLIENT_BUY_HL = new Color(255,255,255);
  public final Color CLIENT_SELL_HL = new Color(255,255,255);

  public final Font FONT_CLIENT_TITLE_BORDER = new Font("Verdana", Font.BOLD, 12);
  public final Font FONT_CLIENT_TEXTAREA = new Font("Verdana", Font.PLAIN, 11);
  public final Font FONT_CLIENT_TEXTAREA_LARGE = new Font("Verdana", Font.PLAIN, 12);
  public final Font FONT_CLIENT_LABEL_UP = new Font("Verdana", Font.BOLD, 14);

  public final Font FONT_DEFAULT_LABEL = new Font("Verdana", Font.PLAIN, 13);

}
